﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="m_leftmenugroup.ascx.cs" Inherits="administrator_uc_admin_m_leftmenugroup" %>
<div id="managecontent">
    <div id="managecontent_title">
        <span style="font-size:15px; font-weight:bold">Quản lý menu trái:</span><asp:DropDownList ID="DropdownLeftMenuGroup" runat="server" Width="200px" onchange="javascript:LeftMenuGroupGetValue(this);" ></asp:DropDownList>    
    </div>
    <br class="clrfix" />
    <div id="managecontent-header">
        <div id="managecontent_feature2">
        <a href="../administrator/default.aspx?mod=m_groups" title="Quay trở lại"><img src="../images/icons/icon_back.jpg" border="0px" /><b>Quay trở lại</b></a> || 
        <a href="javascript:location.reload(true);" title="Load lại trang"><img src="../images/icons/icon_reload.jpg" border="0px" /><b>Tải lại trang</b></a>
        </div>
    </div>
    <br class="clrfix" />
    <div style="border-top:1px solid blue;">
    <table width="910px" cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td style="width:45%;" valign="top">
            <h3>Danh sách Menu trái hệ thống</h3>
            <asp:Panel ID="pnlLeft" runat="server" Width="100%" Height="450px" ScrollBars="Horizontal">
            <asp:GridView ID="grvDanhSach" runat="server" DataKeyNames="MenuID" Width="100%"
            AutoGenerateColumns="False"
            ShowHeader="false" CellPadding="3" GridLines="None">
                <Columns>
                  <asp:TemplateField>                                         
                        <ItemTemplate>
                            <asp:CheckBox ID="chkCheckgvDS" runat="server" />
                            <asp:HiddenField ID="hdItemIDgvDS" runat="server" Value='<%#Bind("MenuID") %>' />
                        </ItemTemplate>
                    </asp:TemplateField>           
                    <asp:BoundField DataField="_Title" HeaderText="Tiêu đề" SortExpression="Title" />
                </Columns>
                <RowStyle Height="25px" CssClass="rowStyle" />
            </asp:GridView>
            </asp:Panel>
            </td>
            <td style="width:10%;" valign="middle">
                <asp:Button ID="btnAddMenu" runat="server" Text=">>" Width="100%" ToolTip="Add Menu" 
                    onclick="btnAddMenu_Click" /><br /><br />
                <asp:Button ID="btnRemoveMenu" runat="server" Text="<<" Width="100%" ToolTip="Remove Menu"
                    onclick="btnRemoveMenu_Click" />
            </td>
            <td style="width:45%;" valign="top">
             <h3>Danh sách Menu trái nhóm được phép truy cập</h3>
            <asp:Panel ID="pnlRight" runat="server" Width="100%" Height="450px" ScrollBars="Horizontal">
            <asp:GridView ID="grvDanhSachChon" runat="server" DataKeyNames="MenuID" Width="100%"
            AutoGenerateColumns="False" ShowHeader="False" 
                CellPadding="3" GridLines="None">
                <Columns>
                     <asp:TemplateField>                        
                        <ItemTemplate>
                            <asp:CheckBox ID="chkCheckgvDSChon" runat="server" />
                            <asp:HiddenField ID="hdItemIDgvDSChon" runat="server" Value='<%#Bind("MenuID") %>' />
                        </ItemTemplate>
                    </asp:TemplateField>           
                    <asp:BoundField DataField="_Title" HeaderText="Tiêu đề" SortExpression="Title" />                    
                </Columns>
                <RowStyle Height="25px" CssClass="rowStyle" />
            </asp:GridView>
            </asp:Panel>
            </td>
        </tr>
    </table>
    </div>
    <div id="AddNewItem">
        <asp:HiddenField ID="hdItemID" runat="server" />
    </div>
</div>